//
//  CDMyMessageTableViewController.m
//  CuriosityDaily3
//
//  Created by panzhi on 16/9/23.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import "CDMyMessageTableViewController.h"
#import "CDCommentViewCell.h"

static NSString *tabcell = @"tabcellid";
static NSString *cellid = @"cellid";

@interface CDMyMessageTableViewController ()

@end

@implementation CDMyMessageTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.estimatedRowHeight = 100;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self.tableView registerClass:[CDCommentViewCell class] forCellReuseIdentifier:tabcell];
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellid];

}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    if (indexPath.row == 0) {
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellid forIndexPath:indexPath];
        cell.imageView.image = [UIImage imageNamed:@"HomeLogo"];
        cell.textLabel.text = @"我发出的评论";
        [cell.textLabel setFont:[UIFont systemFontOfSize:12]];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        return cell;
    }
    CDCommentViewCell *cell = [tableView dequeueReusableCellWithIdentifier:tabcell forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}


@end
